// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//npm install vue-resource --save-dev
import VueResource from 'vue-resource'
Vue.use(VueResource)
//引入element组件开发npm i element-ui -S
import ElementUI from 'element-ui'
Vue.use(ElementUI,{ size: 'small' })
import 'element-ui/lib/theme-chalk/index.css';
import './../static/css/Element.css';

//引入富文本编辑器npm install vue-quill-editor --save
//import  VueQuillEditor from 'vue-quill-editor'
//import 'quill/dist/quill.core.css'
//import 'quill/dist/quill.snow.css'
//import 'quill/dist/quill.bubble.css'
//Vue.use(VueQuillEditor)

//日历组件https://segmentfault.com/a/1190000007898857  npm install vue-event-calendar --save
import 'vue-event-calendar/dist/style.css' //1.1.10之后的版本，css被放在了单独的文件中，方便替换
import './../static/css/rili.css'
import vueEventCalendar from 'vue-event-calendar'
Vue.use(vueEventCalendar) //可以设置语言，支持中文和英文

//递归循环组件
import Treetable from "./views/conponents/Tree_table"
Vue.component('App-Treetable',Treetable) 

// 引入i18n国际化插件
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
// 注册i18n实例并引入语言文件，文件格式等下解析
const i18n = new VueI18n({
  locale: 'zh',
  messages: {
    'zh': require('../static/languages/zh.json'),
    'en': require('../static/languages/en.json')
  }
})


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  i18n,
  router,
  components: { App },
  template: '<App/>'
})
